package com.siae.pojo;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("file")
@Schema(name = "file",description = "文件信息")
public class UploadFile {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(name = "fileName",description = "文件名")
    @TableField(value = "file_name")
    private String fileName;
    @Schema(name = "fileType",description = "文件类型")
    @TableField(value = "file_type")
    private String fileType;
    @Schema(name = "fileSize",description = "文件大小")
    @TableField(value = "file_size")
    private String fileSize;
    @Schema(name = "filePath",description = "文件地址")
    @TableField(value = "file_path")
    private String filePath;
    @Schema(name = "createdAt",description = "创建时间")
    @TableField(value = "created_at")
    private Date createdAt;
    @Schema(name = "updatedAt",description = "修改时间")
    @TableField(value = "updated_at")
    private Date updatedAt;
    @Schema(name = "userId",description = "所属用户id")
    @TableField(value = "user_id")
    private Integer userId;
    @Schema(name = "isDel",description = "逻辑删除 0：未删 1：已删")
    @TableField(value = "is_del")
    private Integer isDel;
}
